<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加模型页面</title>
<css file='__PUBLIC__/css/base.css' />
<jquery />
<js file='__PUBLIC__/js/iframe.js' />
            <link type="text/css" href="__ROOT__/data/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
            <script type="text/javascript" src="__ROOT__/data/ui/js/jquery-1.8.0.min.js"></script>
            <script type="text/javascript" src="__ROOT__/data/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
            <script type="text/javascript">
                $(function(){
                    $("#tabs").tabs();
                })
            </script>

    </head>
    <body style="padding:10px;">
        <div class="now_path">
            <strong>您现在的位置：</strong>
            <a href="__CONTROL__/index">模型管理</a> > 修改模型
        </div>
        <form action="__CONTROL__/model_modify_exe" method="post">
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-0">基本内容</a></li>
                </ul>
                <div id="tabs-0">   
                    <table class="table2">
                        <tr>
                            <th>模型名称：</th>
                            <td><input type="text" name="title" style="width:360px;" value='{$model.title}'/>
                                <span class="desc">模型中文描述</span></td>
                        </tr>
                        <tr>
                            <th>主表名称：</th>
                            <td><input type="text" name="mname" style="width:200px;" value='{$model.mname}'/>
                                <span class="desc">主表名称必须为英文</span>
							</td>
                        </tr>
                        <tr>
                            <th>排序：</th>
                            <td><input type="text" name="sort" style="width:260px;" value="{$model.sort}" /></td>
                        </tr>
                        <tr>
                            <th>是否为系统模型：</th>
                            <td>
                            	<if value='$model.issystem eq 1' >
                            		<input type="radio" name="issystem" value="1" checked="checked"/>是&nbsp;&nbsp;
                                	<input type="radio" name="issystem" value="0" />否 
								<else />
									<input type="radio" name="issystem" value="1" />是&nbsp;&nbsp;
                                	<input type="radio" name="issystem" value="0" checked="checked"/>否 
								</if>
                               
                            </td>
                        </tr>
                            <tr>
                                <th>状态：</th>
                                <td><if value='$model.state eq 1' >
                                	<input type="radio" name="state" value="1" checked="checked"/>开启&nbsp;&nbsp;
                                    <input type="radio" name="state" value="0"/>关闭</td>
									<else />
									<input type="radio" name="state" value="1"/>开启&nbsp;&nbsp;
                                    <input type="radio" name="state" value="0" checked="checked"/>关闭</td>
									</if>
                            </tr>
                            <tr>
                                <th>封面模板：</th>
                                <td><input type="text" name="indextpl" id="indextpl" value="{$model.indextpl}" style="width:300px;"/></td>
                            </tr>
                            <tr>
                                <th>列表页模板：</th>
                                <td><input type="text" name="listtpl" id="listtpl" value="{$model.listtpl}" style="width:300px;"/></td>
                            </tr>
                            <tr>
                                <th>内容页模板：</th>
                                <td><input type="text" name="arctpl" id="arctpl" value="{$model.arctpl}" style="width:300px;"/></td>
                            </tr>
							<tr>
                                <th>模型描述：</th>
                                <td><textarea style="height:60px;width:90%" name='description'>{$model.description}</textarea></td>
                            </tr>
                    </table>
                </div>

                <div style="padding-left:100px;">
					<input type='hidden' name='mid' value='{$hd.get.mid}' />
                    <input type="submit" value="提交修改" class="submit"/>
                </div>
            </div>
        </form>
    </body>
</html>
